package com.dyzs.activity.money;

import android.app.TabActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.widget.TabHost;
import android.widget.TabHost.TabSpec;

import com.dyzs.activity.R;
import com.dyzs.activity.money.bz.BZPlanListActivity;
import com.dyzs.activity.money.calendar.DateWidget;

public class MoneyMainActivity extends TabActivity {
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		TabHost tabHost = getTabHost();
		LayoutInflater.from(this).inflate(R.layout.common_tabhost,tabHost.getTabContentView(), true);		
		TabSpec ts1 = tabHost.newTabSpec("tab1");
		ts1.setIndicator("记账");
		Intent it1 = new Intent(this, DateWidget.class);		
		ts1.setContent(it1);
		tabHost.addTab(ts1);		
		TabSpec ts2 = tabHost.newTabSpec("tab2");
		ts2.setIndicator("报账");
		Intent it2 = new Intent(this, BZPlanListActivity.class);		
		ts2.setContent(it2);
		tabHost.addTab(ts2);
		tabHost.setCurrentTab(0);
	}
		
		
	


}
